home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / kde4 / kdm / Xwilling < prev   
Encoding:
Text File  |  2008-10-24  |  285 b   |  10 lines

  1. #! /bin/sh
  2. # The output of this script is displayed in the chooser window
  3. # (instead of "Willing to manage").
  4.  
  5. load=`uptime|sed -e 's/^.*load[^0-9]*//'`
  6. nrusers=`who|cut -c 1-8|sort -u|wc -l|sed 's/^[     ]*//'`
  7. s=""; [ "$nrusers" != 1 ] && s=s
  8.  
  9. echo "${nrusers} user${s}, load: ${load}"
  10.